from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from . import setting

app = Flask(__name__, static_url_path=setting.APP_URL.get("static_url_path")
            , static_folder=setting.APP_URL.get("static_folder"),
            template_folder=setting.APP_URL.get("template_folder")
            )

app.config.from_object(setting.config)
db = SQLAlchemy(app=app)

from . import models
from . import admin
from . import user
